package com.mdd.maduoduo.domain.interactor;

import com.mdd.maduoduo.domain.executor.PostExecutionThread;
import com.mdd.maduoduo.domain.executor.ThreadExecutor;
import com.mdd.maduoduo.domain.repository.LoginRepository;
import com.mdd.maduoduo.entity.Response;
import javax.inject.Inject;

import io.reactivex.Observable;

public class DeleteShareCodeData extends UseCase<Response,String>{

    @Inject
    LoginRepository mRepository;

    @Inject
    DeleteShareCodeData(ThreadExecutor threadExecutor, PostExecutionThread postExecutionThread) {
        super(threadExecutor, postExecutionThread);
    }

    @Override
    Observable<Response> buildUseCaseObservable(String pickupSharedCode) {
        return mRepository.deleteShareCode(pickupSharedCode);
    }
}
